From: Andreas Schwab Date: Sat, 29 Jun 2002 17:40:14 +0000 (+0000) Subject: (dired-view-file): Quote file name for dired-run-shell-command. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~31968 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=71b25c26ae743617eaadd8554dff1a9d6b2f1c1e;p=emacs.git (dired-view-file): Quote file name for dired-run-shell-command. --- diff --git a/lisp/dired.el b/lisp/dired.el index 16333a45858..d4ddc9b53a3 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1,6 +1,6 @@ ;;; dired.el --- directory-browsing commands -;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 1997, 2000, 2001 +;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 1997, 2000, 2001, 2002 ;; Free Software Foundation, Inc. ;; Author: Sebastian Kremer @@ -1407,7 +1407,8 @@ see `dired-view-command-alist'. Otherwise, display it in another buffer." (if (string-match (car elt) file) (setq cmd (cdr elt)))) (if cmd - (dired-run-shell-command (concat cmd " " file)) + (dired-run-shell-command (concat cmd " " + (shell-quote-argument file))) (view-file file)))))) (defun dired-find-file-other-window ()